package com.yfq.springframework.beans.annotation;

import java.lang.annotation.*;

/**
 * @author 姚凤桥
 * @date 2023/2/5 21:50
 * @description
 */
@Target({ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Autowired {
    /**
     * 默认为必须注入，否则报错
     */
    boolean required() default true;
}
